import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    name: "home",
    path: "/home",
    component: () => import("../views/home/home.vue"),
  },
  {
    name: "detail",
    path: "/detail",
    component: () => import("../views/home/detail/detail.vue"),
  },
  {
    name: "sendWork",
    path: "/sendWork",
    component: () => import("../views/sendWork/sendWork.vue"),
  },
  {
    name: "getBook",
    path: "/getBook",
    component: () => import("../views/work/getBook/getBook.vue"),
  },
  {
    name: "workRecord",
    path: "/workRecord",
    component: () => import("../views/work/workRecord/workRecord.vue"),
  },
  {
    name: "auth",
    path: "/auth",
    component: () => import("../views/user/auth/auth.vue"),
  },
  {
    name: "send",
    path: "/send",
    component: () => import("../views/send/send.vue"),
  },
  {
    name: "user",
    path: "/user",
    component: () => import("../views/user/user.vue"),
  },
  {
    name: "order",
    path: "/order",
    component: () => import("../views/user/order/order.vue"),
  },
  {
    name: "orderDetail",
    path: "/orderDetail",
    component: () => import("../views/user/orderDetail/orderDetail.vue"),
  },
  {
    name: "msg",
    path: "/msg",
    component: () => import("../views/msg/msg.vue"),
  },
  {
    name: "save",
    path: "/save",
    component: () => import("../views/user/save/save.vue"),
  },
  {
    name: "lookUser",
    path: "/lookUser",
    component: () => import("../views/user/lookUser/lookUser.vue"),
  },
  {
    name: "report",
    path: "/report",
    component: () => import("../views/user/report/report.vue"),
  },
  {
    name: "joinUs",
    path: "/joinUs",
    component: () => import("../views/user/joinUs/joinUs.vue"),
  },
  {
    name: "about",
    path: "/about",
    component: () => import("../views/user/about/about.vue"),
  },
  {
    name: "money",
    path: "/money",
    component: () => import("../views/user/money/money.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
